//
//  BLStyleThreeTableViewCell.m
//  家校互通
//
//  Created by 李赛 on 15/5/21.
//  Copyright (c) 2015年 姬鑫宇. All rights reserved.
//

#import "BLStyleThreeTableViewCell.h"

@implementation BLStyleThreeTableViewCell

- (void)awakeFromNib {
    // Initialization code
    
    _btnRead.layer.masksToBounds=YES;
    _btnRead.layer.borderWidth=0.3;
    _btnRead.layer.borderColor=[COLOR(233, 233, 233) CGColor];
    _btnForQuetion.layer.masksToBounds=YES;
    _btnForQuetion.layer.borderWidth=0.3;
    _btnForQuetion.layer.borderColor=[COLOR(233, 233, 233) CGColor];
}

- (void)setContentOfBlackBoard:(BlackBoardModel *)model{
    _lbDetailInfo.text = model.content;
    _lbSendUser.text = model.create_time;
    
    [_btnRead setTitle:[NSString stringWithFormat:@"已读 %ld",(long)model.read_count] forState:UIControlStateNormal];
    [_btnForQuetion setTitle:[NSString stringWithFormat:@"提问 %ld",(long)model.comment_count] forState:UIControlStateNormal];
    NSString *imageString=nil;
    if (model.images.count) {
        imageString =[model.images objectAtIndex:0];
    }
    [_imgForDetailInfo sd_setImageWithURL:[NSURL URLWithStringForBigImage:imageString] placeholderImage:[UIImage imageNamed:@"切换身份背景图.jpg"]];
    [_imgForMsgType setImage:[UIImage imageNamed:@"活动"]];
   
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
